/**
 *
 */
package com.angel.common.keyValue.impl;

import com.angel.common.keyValue.KeyValue;

/**
 * @author William
 *
 */
public class KeyValueImpl implements KeyValue {

	private Object key;
	private Object value;

	public KeyValueImpl(Object key, Object value){
		super();
		this.key = key;
		this.value = value;
	}

	public Object getKey() {
		return this.key.toString();
	}

	public Object getValue() {
		return this.value;
	}

	public Boolean isForKey(Object key) {
		return this.getKey().equals(key);
	}

	@Override
	public String toString(){
		return "'" + this.getKey() + "'='" + this.getValue() + "';";
	}
}
